package com.tianhui.consignortwofei.mvp.model.enty;

import android.text.TextUtils;

import com.fgs.common.interf.ISelectItemValue;

/**
 * @author fgs
 * @date 2020/9/1
 * @description 车长吨位限定信息
 **/
public class VehicleLimitInfo implements ISelectItemValue {
    public String createTime;
    public String customerno;
    public String id;
    public String lengthmax;
    public String lengthmin;
    public String modifyBy;
    public String modifyTime;
    public String remark;
    public String roleid;
    public String type;
    public String weightmax;

    @Override
    public String getSelectItemText() {
        if (TextUtils.isEmpty(lengthmax) && TextUtils.isEmpty(lengthmin) && TextUtils.isEmpty(weightmax)) {
            return "车长不限";
        } else {
            return "车长" + lengthmin + "~" + lengthmax + "最大（" + weightmax + "吨）";
        }
    }

    @Override
    public String getSelectItemTextValue() {
        return null;
    }
}
